package com.cykj.user.service.impl;

import com.cykj.common.dto.ResponseDTO;
import com.cykj.common.entity.HrDO;
import com.cykj.user.mapper.ChatMapper;
import com.cykj.user.service.IChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.user.service.impl
 * @Author: 浮行
 * @CreateTime: 2025-08-28 09:25
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class ChatServiceImpl implements IChatService {
    @Autowired
    private ChatMapper chatMapper;
    @Override
    public ResponseDTO selectHrWithCompany(List<Integer> hrId) {
        List<HrDO> hrDOS = chatMapper.selectHrWithCompany(hrId);
        if(hrDOS != null){
            return ResponseDTO.success(hrDOS);
        }

        return ResponseDTO.error();
    }
}
